package com.digitalchina.lxnsy.entity;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.io.Serializable;
import java.util.List;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.entity
 * 创建人：郑皓
 * 创建时间：2018/8/28 21:03
 * 修改备注：
 * ================================================
 */
public class PesticideV2VO implements Serializable,IPickerViewData{

    /**
     * id : 04b7f459-7b0d-42c3-9aff-e2300ff7ac10
     * createAt : 2018-08-23 11:30:40
     * createTime : 2018-08-23 11:30:40
     * updateAt : 2018-08-23 11:32:13
     * updateTime : 2018-08-23 11:32:13
     * status : null
     * sort : 0
     * version : 1
     * name : 枯萎病
     * code : 300213
     * type : 300201
     * isWater : 1
     * pesticides : [{"id":"239b07dc-43cc-4715-b4ba-187206e9e1b2","createAt":"2018-08-23 11:30:15","createTime":"2018-08-23 11:30:15","updateAt":"2018-08-23 11:30:15","updateTime":"2018-08-23 11:30:15","status":null,"sort":0,"version":0,"name":"增效多菌灵","code":"300284","type":"300201","persistent":true,"entityId":"239b07dc-43cc-4715-b4ba-187206e9e1b2"},{"id":"64ceb29f-2df0-41e1-853e-5c730440280e","createAt":"2018-08-23 11:30:15","createTime":"2018-08-23 11:30:15","updateAt":"2018-08-23 11:30:15","updateTime":"2018-08-23 11:30:15","status":null,"sort":0,"version":0,"name":"氯溴异氰尿酸（消菌灵）","code":"300285","type":"300201","persistent":true,"entityId":"64ceb29f-2df0-41e1-853e-5c730440280e"}]
     * persistent : true
     * entityId : 04b7f459-7b0d-42c3-9aff-e2300ff7ac10
     */

    private String id;
    private String createAt;
    private String createTime;
    private String updateAt;
    private String updateTime;
    private Object status;
    private int sort;
    private int version;
    private String name;
    private String code;
    private String type;
    private int isWater;
    private boolean persistent;
    private String entityId;
    private List<PesticidesBean> pesticides;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(String updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getIsWater() {
        return isWater;
    }

    public void setIsWater(int isWater) {
        this.isWater = isWater;
    }

    public boolean isPersistent() {
        return persistent;
    }

    public void setPersistent(boolean persistent) {
        this.persistent = persistent;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public List<PesticidesBean> getPesticides() {
        return pesticides;
    }

    public void setPesticides(List<PesticidesBean> pesticides) {
        this.pesticides = pesticides;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    public static class PesticidesBean implements Serializable,IPickerViewData{
        /**
         * id : 239b07dc-43cc-4715-b4ba-187206e9e1b2
         * createAt : 2018-08-23 11:30:15
         * createTime : 2018-08-23 11:30:15
         * updateAt : 2018-08-23 11:30:15
         * updateTime : 2018-08-23 11:30:15
         * status : null
         * sort : 0
         * version : 0
         * name : 增效多菌灵
         * code : 300284
         * type : 300201
         * persistent : true
         * entityId : 239b07dc-43cc-4715-b4ba-187206e9e1b2
         */

        private String id;
        private String createAt;
        private String createTime;
        private String updateAt;
        private String updateTime;
        private Object status;
        private int sort;
        private int version;
        private String name;
        private String code;
        private String type;
        private boolean persistent;
        private String entityId;

        public String getDilutedMultiple() {
            return dilutedMultiple;
        }

        public void setDilutedMultiple(String dilutedMultiple) {
            this.dilutedMultiple = dilutedMultiple;
        }

        private String dilutedMultiple;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreateAt() {
            return createAt;
        }

        public void setCreateAt(String createAt) {
            this.createAt = createAt;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateAt() {
            return updateAt;
        }

        public void setUpdateAt(String updateAt) {
            this.updateAt = updateAt;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public Object getStatus() {
            return status;
        }

        public void setStatus(Object status) {
            this.status = status;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public boolean isPersistent() {
            return persistent;
        }

        public void setPersistent(boolean persistent) {
            this.persistent = persistent;
        }

        public String getEntityId() {
            return entityId;
        }

        public void setEntityId(String entityId) {
            this.entityId = entityId;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }
}
